Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v3.7-branch] lib: shell: replace strtol with strtoul in cmd_load for address parsing #81696

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Nov 21, 2024

Backport 1aaf08f from #81563.
Fixes #81343.

Addresses in cmd_load() should always be unsigned. Previously, strtol()
was used, which is limited to signed long values, causing issues with
addresses >= 0x80000000. This commit replaces strtol() with strtoul(),
ensuring proper handling of the full 32-bit address space.

Fixes #81343

Signed-off-by: Aaron Fontaine <[email protected]>
Signed-off-by: Jakub Rzeszutko <[email protected]>
(cherry picked from commit 1aaf08f)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: Shell Shell subsystem labels Nov 21, 2024
@nashif nashif merged commit c26e6e7 into v3.7-branch Dec 14, 2024
27 of 28 checks passed
@nashif nashif deleted the backport-81563-to-v3.7-branch branch December 14, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants